Skip to content

[SPARK-56796][UI] Fix sticky tooltips for Stage page additional metrics#55771

Closed
XdithyX wants to merge 1 commit into
apache:masterfrom
XdithyX:SPARK-56796
Closed

[SPARK-56796][UI] Fix sticky tooltips for Stage page additional metrics#55771
XdithyX wants to merge 1 commit into
apache:masterfrom
XdithyX:SPARK-56796

Conversation

@XdithyX
Copy link
Copy Markdown
Contributor

@XdithyX XdithyX commented May 8, 2026

What changes were proposed in this pull request?

This PR updates the Stage page additional metrics tooltips to use data-bs-trigger="hover" (SPARK-56796).
The change is limited to the additional metrics checkbox options under Show Additional Metrics, such as Scheduler Delay, Task Deserialization Time, Getting Result Time, and Peak Execution Memory.

Why are the changes needed?

Currently, after selecting one of the Stage page additional metrics checkboxes, the tooltip can remain visible even after the mouse leaves the option.
This happens because Bootstrap tooltips use the default hover focus trigger. When a checkbox inside the tooltip target is clicked, focus can keep the tooltip active after mouseleave.

For these checkbox options, the tooltip should only be shown while hovering.

Does this PR introduce any user-facing change?

Yes.

In the Stage page, tooltips for Show Additional Metrics checkbox options now disappear when the mouse leaves the option after selecting it.

How was this patch tested?

Manually tested in the Spark UI Stage page:

  1. Opened a stage detail page.
  2. Expanded Show Additional Metrics.
  3. Hovered over an additional metric option to show the tooltip.
  4. Selected the checkbox.
  5. Moved the mouse away from the option.
  6. Verified that the tooltip no longer remains visible after mouseleave.

Was this patch authored or co-authored using generative AI tooling?

Yes. Generated-by: OpenAI GPT-5.5 Codex

Before the fix

before.mov

After the fix

after.fix.mov

@XdithyX
Copy link
Copy Markdown
Contributor Author

XdithyX commented May 8, 2026

Hi @sarutak Can you please have a look?
Thank you!

@XdithyX
Copy link
Copy Markdown
Contributor Author

XdithyX commented May 11, 2026

Thank you @sarutak for the review. Please let me know if anything else is needed. Otherwise, can we check this in?

@XdithyX
Copy link
Copy Markdown
Contributor Author

XdithyX commented May 16, 2026

Hi @sarutak , gentle follow-up on this PR. Since it has already been approved, could we proceed with checking it in when convenient? Please let me know if anything else is needed from my side. Thanks!

@sarutak sarutak closed this in e20f55f May 18, 2026
sarutak pushed a commit that referenced this pull request May 18, 2026
### What changes were proposed in this pull request?
This PR updates the Stage page additional metrics tooltips to use `data-bs-trigger="hover"` ([SPARK-56796](https://issues.apache.org/jira/browse/SPARK-56796)).
The change is limited to the additional metrics checkbox options under `Show Additional Metrics`, such as `Scheduler Delay`, `Task Deserialization Time`, `Getting Result Time`, and `Peak Execution Memory`.

### Why are the changes needed?
Currently, after selecting one of the Stage page additional metrics checkboxes, the tooltip can remain visible even after the mouse leaves the option.
This happens because Bootstrap tooltips use the default `hover focus` trigger. When a checkbox inside the tooltip target is clicked, focus can keep the tooltip active after mouseleave.

For these checkbox options, the tooltip should only be shown while hovering.

### Does this PR introduce _any_ user-facing change?
Yes.

In the Stage page, tooltips for `Show Additional Metrics` checkbox options now disappear when the mouse leaves the option after selecting it.

### How was this patch tested?

Manually tested in the Spark UI Stage page:

1. Opened a stage detail page.
2. Expanded `Show Additional Metrics`.
3. Hovered over an additional metric option to show the tooltip.
4. Selected the checkbox.
5. Moved the mouse away from the option.
6. Verified that the tooltip no longer remains visible after mouseleave.

### Was this patch authored or co-authored using generative AI tooling?
Yes. Generated-by: OpenAI GPT-5.5 Codex

### Before the fix

https://github.com/user-attachments/assets/c2ece423-5150-4478-b4e5-0931de396085

### After the fix

https://github.com/user-attachments/assets/9dde5476-412b-461b-a35b-bc40cea943a3

Closes #55771 from XdithyX/SPARK-56796.

Authored-by: Adithya Ajith <4adhi007@gmail.com>
Signed-off-by: Kousuke Saruta <sarutak@apache.org>
(cherry picked from commit e20f55f)
Signed-off-by: Kousuke Saruta <sarutak@apache.org>
@sarutak
Copy link
Copy Markdown
Member

sarutak commented May 18, 2026

Merged to master/branch-4.x/branch-4.2. Thank you @XdithyX !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants